package com.lzh.client;

import com.lzh.pojo.repVo.BaseResp;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Li
 * @ 2022/3/28
 */
@FeignClient(name = "tg-order",path = "/order")
public interface OrderClients {
    @RequestMapping("/findDetailByOrderid")
    public BaseResp findDetailByOrderid(@RequestParam("orderid") String orderid);

    @RequestMapping("/findByOrderid")
    public BaseResp findByOrderid(@RequestParam("orderid") String orderid);

    @RequestMapping("/updateStatus")
    public BaseResp updateStatus(@RequestParam("orderId") String orderId,@RequestParam("status") Integer status);

    @RequestMapping("/findByDetailByOrderDetail")
    public BaseResp findByDetailByOrderDetail(@RequestParam("detailId") String detailId) ;

}
